Don't pass around Option<&[T]> for libs/bins
authorAlex Crichton <alex@alexcrichton.com>
Wed, 23 Jul 2014 18:27:02 +0000 (11:27 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 23 Jul 2014 18:27:02 +0000 (11:27 -0700)
commit817e483ac14b43d70aaf564d639e07cfb8552e86
tree9c7f8a88d68874714a399edb457a200547faf6e3
parenteb9bd6cb6f36351a8e9f27f71c3e15c17f664154
Don't pass around Option<&[T]> for libs/bins

These ended up being Some([]) much of the time which was confusing because it
was being interpreted incorrectly. By passing just slices we know when there's
an element or not.
src/cargo/util/toml.rs